//
// Created by Arikes on 9/21/21.
//

#ifndef DESIGNERMODE_FACADE_H
#define DESIGNERMODE_FACADE_H

#include "SubSystems.h"
#include <iostream>
namespace FacedeMode
{
    class Facede
    {
    public:
        Facede()
        {
            _sys01 = new SubSystem01;
            _sys02 = new SubSystem02;
            _sys03 = new SubSystem03;
        }

        void method()
        {
            _sys01->method1();
            _sys02->method2();
            _sys03->method3();
        }
    private:
        SubSystem01* _sys01;
        SubSystem02* _sys02;
        SubSystem03* _sys03;
    };
}

#endif //DESIGNERMODE_FACADE_H

//FacedeMode::Facede* pFacade = new FacedeMode::Facede;
//pFacade->method();
